<template>
  <div class="prose-base">
    <h1>知识库首页home</h1>
    <!-- <h2>{{ h }}</h2>
    <ElButton type="primary" @click="router.push({ name: 'Graph' })"
      >知识图谱</ElButton
    >
    <ElButton type="primary" @click="testrefresh">test refresh</ElButton>
    <ElButton type="primary" @click="testchange">patchflag</ElButton>
    <CommonEcharts class="w-[400px] h-[300px]"></CommonEcharts> -->
  </div>
</template>

<script setup lang="ts">
import { getUserInfo } from "@/api/user";

defineOptions({
  name: "Home",
});

const h = ref("hello");
const testchange = () => {
  h.value = "test";
};

const router = useRouter();

const testrefresh = async () => {
  const r = await getUserInfo();
  console.log("🚀 ~ file: TestCmp.vue:61 ~ testrefresh ~ r", r);
};
</script>

<style lang="scss" scoped></style>
